package com.daezi.www;

import java.util.Date;

public class Test {


    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.setName("旺财");
        dog.setAge(2);
        dog.setColor("黄色");
        dog.eat();
        dog.barks();
        dog.show();
        System.out.println(dog);

    }
    public static void main1(String[] args) {
        //java.util.Date date = new java.util.Date();//获得时间戳，未导包的写法
        Date date = new Date();//获得时间戳，导包的写法


        System.out.println(date);
    }

}
